<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GSoC2011SfM: D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/EuclideanEstimator.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">GSoC2011SfM
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">Google Summer of Code 2011: Structure from motion</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/EuclideanEstimator.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _GSOC_SFM_POINTS_3D_EUCLIDEAN_ESTIMATION_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _GSOC_SFM_POINTS_3D_EUCLIDEAN_ESTIMATION_H 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;libmv/base/vector.h&quot;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;libmv/numeric/numeric.h&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;opencv2/core/eigen.hpp&quot;</span>
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="preprocessor">#include &quot;macro.h&quot;</span> <span class="comment">//SFM_EXPORTS</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;SequenceAnalyzer.h&quot;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &quot;PointOfView.h&quot;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="keyword">namespace </span>OpencvSfM{
<a name="l00014"></a>00014 
<a name="l00023"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html">00023</a>   <span class="keyword">class </span>SFM_EXPORTS <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html" title="This class perform a projective estimation of the motion. Given points matches and cameras with intra...">EuclideanEstimator</a>
<a name="l00024"></a>00024   {
<a name="l00025"></a>00025   <span class="keyword">protected</span>:
<a name="l00026"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a4f7ae927e99fdb0b6bb3125208aa1663">00026</a>     <span class="keywordtype">int</span> <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a4f7ae927e99fdb0b6bb3125208aa1663" title="index of camera set as origin...">index_origin</a>;
<a name="l00027"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a434eb8f3da74122c2dd7fd323569a629">00027</a>     libmv::vector&lt;libmv::Mat3&gt; <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a434eb8f3da74122c2dd7fd323569a629" title="Intra parameters of cameras (don&#39;t use them, they are strongly related to cameras_ attribut!...">intra_params_</a>;
<a name="l00028"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a4649831fdd99cb15be351928dc69213b">00028</a>     libmv::vector&lt;libmv::Mat3&gt; <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a4649831fdd99cb15be351928dc69213b" title="rotations matrix of cameras (don&#39;t use them, they are strongly related to cameras_ attribut!...">rotations_</a>;
<a name="l00029"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a5b5ca96b398aad275d7ffd79c492d9ed">00029</a>     libmv::vector&lt;libmv::Vec3&gt; <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a5b5ca96b398aad275d7ffd79c492d9ed" title="translation vectors of cameras (don&#39;t use them, they are strongly related to cameras_ attribut!...">translations_</a>;
<a name="l00030"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#adcf96ff6971f5ccd6c77c83c8e76e7e9">00030</a>     std::vector&lt;PointOfView&gt;&amp; <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#adcf96ff6971f5ccd6c77c83c8e76e7e9" title="List of cameras (intra and extern parameters...)">cameras_</a>;
<a name="l00031"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a6b9217240500126545a9b3696f9bdcbe">00031</a>     <a class="code" href="class_opencv_sf_m_1_1_sequence_analyzer.html" title="This class tries to match points in the entire sequence. It follow ideas proposed by Noah Snavely: Mo...">SequenceAnalyzer</a> &amp;<a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a6b9217240500126545a9b3696f9bdcbe" title="Object containing all 2D information of this sequence.">sequence_</a>;
<a name="l00032"></a>00032   <span class="keyword">public</span>:
<a name="l00039"></a>00039     <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html" title="This class perform a projective estimation of the motion. Given points matches and cameras with intra...">EuclideanEstimator</a>( <a class="code" href="class_opencv_sf_m_1_1_sequence_analyzer.html" title="This class tries to match points in the entire sequence. It follow ideas proposed by Noah Snavely: Mo...">SequenceAnalyzer</a> &amp;sequence,
<a name="l00040"></a>00040       std::vector&lt;PointOfView&gt;&amp; cameras );
<a name="l00044"></a>00044     <span class="keyword">virtual</span> ~<a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html" title="This class perform a projective estimation of the motion. Given points matches and cameras with intra...">EuclideanEstimator</a>( <span class="keywordtype">void</span> );
<a name="l00045"></a>00045 
<a name="l00046"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a18a1079d31b360865cf58088f71e7a36">00046</a>     std::vector&lt; TrackOfPoints &gt; <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a18a1079d31b360865cf58088f71e7a36" title="list of 3D points computed">point_computed_</a>;
<a name="l00047"></a><a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a678b38f149b13435499e5e3f8bc83ca3">00047</a>     std::vector&lt;bool&gt; <a class="code" href="class_opencv_sf_m_1_1_euclidean_estimator.html#a678b38f149b13435499e5e3f8bc83ca3" title="List of camera computed.">camera_computed_</a>;
<a name="l00048"></a>00048 
<a name="l00053"></a>00053     <span class="keywordtype">void</span> addNewPointOfView( <span class="keyword">const</span> <a class="code" href="class_opencv_sf_m_1_1_point_of_view.html" title="This class represent the 3D position of the device which take the pictures. The role of the class is ...">PointOfView</a>&amp; camera );
<a name="l00054"></a>00054 
<a name="l00058"></a>00058     <span class="keywordtype">void</span> computeReconstruction( );
<a name="l00059"></a>00059 
<a name="l00063"></a>00063     <span class="keywordtype">void</span> bundleAdjustement( );
<a name="l00064"></a>00064 
<a name="l00068"></a>00068     <span class="keywordtype">void</span> viewEstimation();
<a name="l00069"></a>00069     
<a name="l00075"></a>00075     <span class="keywordtype">void</span> initialReconstruction( <span class="keywordtype">int</span> image1, <span class="keywordtype">int</span> image2 );
<a name="l00076"></a>00076     
<a name="l00081"></a>00081     <span class="keywordtype">bool</span> cameraResection( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> image );
<a name="l00082"></a>00082   };
<a name="l00083"></a>00083 
<a name="l00084"></a>00084 }
<a name="l00085"></a>00085 
<a name="l00086"></a>00086 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Aug 21 2011 16:45:52 for GSoC2011SfM by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
